home *** CD-ROM | disk | FTP | other *** search
/ Visual Basic Source Code / Visual Basic Source Code.iso / vbsource / blkspell / borlxapp.cpp < prev    next >
C/C++ Source or Header  |  1998-09-19  |  2KB  |  113 lines

  1. //----------------------------------------------------------------------------
  2. //  Project Borl_ex
  3. //  BlockTeq Software
  4. //  Copyright ⌐ 1998. All Rights Reserved.
  5. //
  6. //  SUBSYSTEM:    Borl_ex Application
  7. //  FILE:         borlxapp.cpp
  8. //  AUTHOR:       D.R.Block
  9. //
  10. //  OVERVIEW
  11. //  ~~~~~~~~
  12. //  Source file for implementation of TBorl_exApp (TApplication).
  13. //
  14. //----------------------------------------------------------------------------
  15.  
  16. #include <owl/pch.h>
  17.  
  18. #include <stdio.h>
  19.  
  20. #include "borlxapp.h"
  21. #include "brlxdlgc.h"                        // Definition of client class.
  22.  
  23.  
  24. //{{TBorl_exApp Implementation}}
  25.  
  26.  
  27. //
  28. // Build a response table for all messages/commands handled
  29. // by the application.
  30. //
  31. DEFINE_RESPONSE_TABLE1(TBorl_exApp, TApplication)
  32. //{{TBorl_exAppRSP_TBL_BEGIN}}
  33.   EV_COMMAND(CM_HELPABOUT, CmHelpAbout),
  34. //{{TBorl_exAppRSP_TBL_END}}
  35. END_RESPONSE_TABLE;
  36.  
  37.  
  38. //--------------------------------------------------------
  39. // TBorl_exApp
  40. //
  41. TBorl_exApp::TBorl_exApp() : TApplication("Borl_ex")
  42. {
  43.  
  44.   // INSERT>> Your constructor code here.
  45. }
  46.  
  47.  
  48. TBorl_exApp::~TBorl_exApp()
  49. {
  50.   // INSERT>> Your destructor code here.
  51. }
  52.  
  53.  
  54. //--------------------------------------------------------
  55. // TBorl_exApp
  56. // ~~~~~
  57. // Application intialization.
  58. //
  59. void TBorl_exApp::InitMainWindow()
  60. {
  61.   if (nCmdShow != SW_HIDE)
  62.     nCmdShow = (nCmdShow != SW_SHOWMINNOACTIVE) ? SW_SHOWNORMAL : nCmdShow;
  63.  
  64.   TSDIDecFrame* frame = new TSDIDecFrame(0, GetName(), 0, false);
  65.   frame->SetFlag(wfShrinkToClient);
  66.  
  67.   // Assign icons for this application.
  68.   //
  69.   frame->SetIcon(this, IDI_SDIAPPLICATION);
  70.   frame->SetIconSm(this, IDI_SDIAPPLICATION);
  71.  
  72.   SetMainWindow(frame);
  73.  
  74. }
  75.  
  76.  
  77.  
  78. //{{TSDIDecFrame Implementation}}
  79.  
  80.  
  81. TSDIDecFrame::TSDIDecFrame(TWindow* parent, const char far* title, TWindow* clientWnd, bool trackMenuSelection, TModule* module)
  82. :
  83.   TDecoratedFrame(parent, title, !clientWnd ? new TBorl_exDlgClient(0) : clientWnd, trackMenuSelection, module)
  84. {
  85.   // INSERT>> Your constructor code here.
  86.  
  87. }
  88.  
  89.  
  90. TSDIDecFrame::~TSDIDecFrame()
  91. {
  92.   // INSERT>> Your destructor code here.
  93.  
  94. }
  95.  
  96.  
  97. //--------------------------------------------------------
  98. // TBorl_exApp
  99. // ~~~~~~~~~~~
  100. // Menu Help About Borl_ex command
  101. //
  102. void TBorl_exApp::CmHelpAbout()
  103. {
  104. }
  105.  
  106.  
  107.  
  108. int OwlMain(int , char* [])
  109. {
  110.   TBorl_exApp   app;
  111.   return app.Run();
  112. }
  113.